<? if(!defined('IN_ROOT')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Manyou's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=MY_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jqueryui.js" type="text/javascript"></script>
<script src="js/admin.js" type="text/javascript"></script>

</head>
<body>

<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><h3 class="marginbot">分类列表</h3>
<div id="path"><a href="index.php?admin_site<?=$setting['seo_suffix']?>">分站管理</a>&gt;&gt;<a href="index.php?admin_site/cates/<?=$sid?>/<?=$type?><?=$setting['seo_suffix']?>"><?=$site['name']?>--<?=$nv?></a>&gt;&gt;<a href="index.php?admin_site/areas/<?=$sid?>/<?=$type?>/<?=$cid?><?=$setting['seo_suffix']?>"><?=$cname?></a> <? if(isset($navlist)) { if(is_array($navlist)) { foreach($navlist as $nav) { ?>
 &gt;&gt; <a href="index.php?admin_site/areas/<?=$sid?>/<?=$type?>/<?=$cid?>/<?=$nav['id']?><?=$setting['seo_suffix']?>"><?=$nav['name']?></a>  
 
<? } } } ?> <? if(isset($category['name'])) { ?>&gt;&gt; <?=$category['name']?><? } ?></div>

<div class="mainbox">
<form name="answerlist" action="index.php?admin_site/areas<?=$setting['seo_suffix']?>" method="post">
<table width="80%" cellspacing="0" cellpadding="3" class="list">
<tr align="center" class="list_title">

<th width="35%" align="center"><strong>分类名称</strong></th>
<th  width="15%" align="center"><strong>查看子分类</strong></th>
<th width="20%" align="left"><input class="checkbox" id="chkall" onclick="checkall('addaid[]')" type="checkbox" name="chkall"><label for="chkall">全选</label></th>
<th  width="30%" align="center"><strong>别称</strong></th>
</tr>    
</table>
    <input type="hidden" name="aid" value="<?=$aid?>" />
    <input type="hidden" name="cid" value="<?=$cid?>" />
    <input type="hidden" name="sid" value="<?=$sid?>" />
    <input type="hidden" name="type" value="<?=$type?>" />
<ul id="list">
<? if(is_array($categorylist)) { foreach($categorylist as $cate) { ?>
<li style="list-style:none;">
<table width="80%"  class="list" id="table1">
<tr style="background:#f7f7f7">

<td width="35%"  align="center"><a href="index.php?admin_site/areas/<?=$sid?>/<?=$type?>/<?=$cid?>/<?=$cate['id']?><?=$setting['seo_suffix']?>"><input name="order[]" type="hidden" value="<?=$cate['id']?>"/><strong><?=$cate['name']?></strong></a></td>

<td width="15%" align="center"><a href="index.php?admin_site/areas/<?=$sid?>/<?=$type?>/<?=$cid?>/<?=$cate['id']?><?=$setting['seo_suffix']?>"><img src="<?=SITE_URL?>css/common/admin/view.png"></a></td>
<td width="20%"><input class="checkbox" type="checkbox" value="<?=$cate['id']?>" name="addaid[]"<? if($cate['mid']>0) { ?> checked<? } ?>><input type="hidden" name="delaid[]" value="<?=$cate['id']?>" /></td>
<td width="30%" align="center"><input class="txt" type="text" value="<?=$cate['ename']?>" name="ename[<?=$cate['id']?>]"></td>
</tr>
</table>
</li>
<? } } ?>
</ul>
<table width="80%" cellspacing="0" cellpadding="3">
<tr class="nobg"><td align="center"><input class="btn" type="submit" name="submit" value="提&nbsp;交" /></td></tr>
</table>
</form>
</div>
</div>
</body>
</html>